package com.example.demo.listener;

import javax.servlet.ServletRequestEvent;
import javax.servlet.ServletRequestListener;
import javax.servlet.annotation.WebListener;

/**
 * 监听器
 */
@WebListener
public class MyRequestListener implements ServletRequestListener {
    @Override
    public void requestDestroyed(ServletRequestEvent sre) {
        System.out.println("【Listener】销毁。。。");
    }

    @Override
    public void requestInitialized(ServletRequestEvent sre) {
        System.out.println("【Listener】初始化、、、");
    }
}
